package com.fyy.sentinel.service;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @Author fyy
 * @Description
 * @Date 2021/7/13 15:23
 */
@Service
public class TestService {

    @Async
    public void hello() {
        System.out.println("异步开始");
        try {
            Thread.sleep(500);
        } catch (InterruptedException e) {
            System.out.println(e.getMessage());
        }
        System.out.println("异步结束");
    }

}
